package com.yingsheng.bi.hks.web.controller;

import com.yingsheng.bi.hks.dto.home.HomeResourceSearchReq;
import com.yingsheng.bi.hks.dto.home.HomeResourceSearchRes;
import com.yingsheng.bi.hks.feign.client.HomeFeignClient;
import com.yingsheng.bi.hks.service.home.HomeService;
import com.yingsheng.bi.hks.template.annotation.Template;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * 首页信息管理
 *
 * @author 83686
 */
@RestController
public class HomeCtrl implements HomeFeignClient {

    @Autowired
    private HomeService homeService;

    @Template(name = "publicQueryTemplate")
    @Override
    public HomeResourceSearchRes homeResourceSearch(HomeResourceSearchReq req) {
        return homeService.homeResourceSearch(req);
    }
}
